const { request, response } = require('express');
const http = require('http');

const server = http.createServer((request,response)=>{
    let body;
    request.on('data',chunk=>{
        body += chunk;
    });
    request.on('end',()=>{
        console.log(body);
        response.end('hello http')
    })
    response.end('http')
})

server.listen(1234,()=>{
    console.log('服务已启动……');
})